import { ref } from 'vue'
export const showSwi = ref(false)
export const showTools = ref(false)
export const switlayer = ref([
  {
    src: 'https://img.gejiba.com/images/884625671b3374399175bfeb09de6026.jpg',
    layertitle: '居民区',
  },
  {
    src: 'https://img.gejiba.com/images/f0a015b1461d1584e71a06dc002101e3.jpg',
    layertitle: '光谷道路',
  },
  {
    src: 'https://img.gejiba.com/images/cec382cb393176afdee76a4762bbbd5c.jpg',
    layertitle: '道路事件',
  },

  {
    src: 'https://img.gejiba.com/images/dd4c74c15d108ec134e70cdf67f545ec.jpg',
    layertitle: '摄像头',
  },
  {
    src: 'https://img.gejiba.com/images/b8642a075f115dc6592abe2feee49a46.jpg',
    layertitle: '警务室',
  },
  {
    src: 'https://img.gejiba.com/images/e8cbf554213d1c8c623a3297465576d0.jpg',
    layertitle: '显示所有',
  },
  {
    src: 'https://img.gejiba.com/images/79adb5aa223bef7826ef4af76d6160fd.jpg',
    layertitle: '隐藏所有',
  },
  {
    src: 'https://img.gejiba.com/images/8855bdd22b4f4849a766340a632c65d2.jpg',
    layertitle: '实时路况',
  },
])
export const tools = ref([
  {
    src: 'https://img.gejiba.com/images/3cec70d1e2e3eaaadf1900b5ab094d2b.png',
    title: '位置收藏',
  },
  {
    src: 'https://img.gejiba.com/images/d7ed5bfc8a3072ab88648d86dfa2d720.jpg',
    title: '测量距离',
  },
  {
    src: 'https://img.gejiba.com/images/6287fd6514e7a61c1d315d4059977c97.jpg',
    title: '测量面积',
  },
  {
    src: 'https://img.gejiba.com/images/02db80fae51eb29ee30e127864747abd.jpg',
    title: '关闭测量',
  },
  {
    src: 'https://img.gejiba.com/images/a675203def3cd3459e6f39f774024935.jpg',
    title: '取消收藏',
  },
  {
    src: 'https://img.gejiba.com/images/9d8dff85d067eb82da041f86c18a5e14.jpg',
    title: '导出图片',
  },
])
export const dim = ref([
  {
    src: 'https://img.gejiba.com/images/4a11c8789bf2bf802b199adb7ad567dc.jpg',
    title: '2D图',
  },
  {
    src: 'https://img.gejiba.com/images/9c2c3c7f9dc7b16eefdc32c317c29076.jpg',
    title: '3D图',
  },
])
export const showLayPopup = () => {
  showSwi.value = true
}
export const fclosePopup = (map) => {
  // console.log(val)
  showSwi.value = false
  showTools.value = false
}
export const showToolsPopup = () => {
  showTools.value = true
}
